﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LDSP.Util.Mail
{
    public class MailInfoFactory
    {
        public static MailInfo GetMailInfo(MailType type, string selectedIds)
        {
            MailInfo info = null;
            switch (type)
            {
                case MailType.Codification:
                    {
                        info = new CodificationMailInfo(selectedIds);
                        break;
                    }
                case MailType.News:
                    {
                        info = new NewsMailInfo(selectedIds);
                    }
                    break;
                default: break;
            }
            return info;
        }
    }
}
